const {createProxyMiddleware} = require('http-proxy-middleware');

module.exports = function (app) {
  app.use(
    createProxyMiddleware(
          '/csc',
          {
            target: 'https://devin.cool',
            changeOrigin: true,     // target是域名的话，需要这个参数，
            secure: false,    
          }
      )
  );
};